package com.hejing.cloud.apis;

import com.hejing.cloud.resp.ResultData;
import com.hejing.cloud.resp.ReturnCodeEnum;
import org.springframework.stereotype.Component;

/**
 * ClassName: PayFeignSentinelFallBack
 * Package: com.hejing.cloud.apis
 * Description:
 *
 * @Author: HeJing
 * @Create: 2024-08-07 22:30
 * @Version: 1.0
 */
@Component
public class PayFeignSentinelFallBack implements PayFeignSentinelApi{
    @Override
    public ResultData getPayByOrderNo(String orderNo) {
        return ResultData.fail(ReturnCodeEnum.RC500.getCode(), "对方服务宕机或不可用，FallBack服务降级执行");
    }
}



























